﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;

namespace Chromatics.Pages.CustomLine
{
    public partial class CustomLine : UserControl
    {
        public CustomLine()
        {
            InitializeComponent();
        }

        public void Run()
        {
            this.LineAnimation.Begin();
        }

        public void Stop()
        {
            this.LineAnimation.Stop();
        }

        public double X1
        {
            get
            {
                return this.line.X1;
            }

            set
            {
                this.line.X1 = value;
            }
        }

        public double Y1
        {
            get
            {
                return this.line.Y1;
            }

            set
            {
                this.line.Y1 = value;
            }
        }

        public double X2
        {
            get
            {
                return this.line.X2;
            }

            set
            {
                this.line.X2 = value;
            }
        }

        public double Y2
        {
            get
            {
                return this.line.Y2;
            }

            set
            {
                this.line.Y2 = value;
            }
        }

        public string LineName
        {
            get
            {
                return this.line.Name;
            }

            set
            {
                this.line.Name = value;
            }
        }

        public double StrokeThickness
        {
            get
            {
                return this.line.StrokeThickness;
            }

            set
            {
                this.line.StrokeThickness = value;
            }
        }
    }
}
